package com.example.demo;

public class wsfhs {
    public  static  void  main(String[] args){
        Test a=Test.builder().a("a").builder();
        System.out.println(a);

    }
    public static class Test {
        private String a;
        public static TestBuilder builder()

        {
            return new TestBuilder();
        }

        private static class TestBuilder extends Test {
            private String a;

            public Test a(String a) {
                return null;
            }
        }

        public Test a(String a) {
            this.a = a;
            return this;
        }

        public Test build() {
            Test test = new Test();
            test.a = test.a;
            return test;
        }
    }
}

